package com.ti.andon.persistent.base;

import java.util.Date;

/**
 * AbstractAdAlndomainId entity provides the base persistence definition of the AdAlndomainId
 * entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractAdAlndomain implements java.io.Serializable
{

	// Fields

	private Long alndomainId;
	private String domainCode;
	private String domainValue;
	private String domainDesc;
	private Date changeDate;
	private String changeBy;

	// Constructors

	/** default constructor */
	public AbstractAdAlndomain()
	{}

	/** minimal constructor */
	public AbstractAdAlndomain(Long alndomainId, String domainCode, String domainValue)
	{
		this.alndomainId = alndomainId;
		this.domainCode = domainCode;
		this.domainValue = domainValue;
	}

	/** full constructor */
	public AbstractAdAlndomain(Long alndomainId, String domainCode, String domainValue, String domainDesc,
			Date changeDate, String changeBy)
	{
		this.alndomainId = alndomainId;
		this.domainCode = domainCode;
		this.domainValue = domainValue;
		this.domainDesc = domainDesc;
		this.changeDate = changeDate;
		this.changeBy = changeBy;
	}

	// Property accessors

	public Long getAlndomainId()
	{
		return this.alndomainId;
	}

	public void setAlndomainId(Long alndomainId)
	{
		this.alndomainId = alndomainId;
	}

	public String getDomainCode()
	{
		return this.domainCode;
	}

	public void setDomainCode(String domainCode)
	{
		this.domainCode = domainCode;
	}

	public String getDomainValue()
	{
		return this.domainValue;
	}

	public void setDomainValue(String domainValue)
	{
		this.domainValue = domainValue;
	}

	public String getDomainDesc()
	{
		return this.domainDesc;
	}

	public void setDomainDesc(String domainDesc)
	{
		this.domainDesc = domainDesc;
	}

	public Date getChangeDate()
	{
		return this.changeDate;
	}

	public void setChangeDate(Date changeDate)
	{
		this.changeDate = changeDate;
	}

	public String getChangeBy()
	{
		return this.changeBy;
	}

	public void setChangeBy(String changeBy)
	{
		this.changeBy = changeBy;
	}

	public boolean equals(Object other)
	{
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractAdAlndomain))
			return false;
		AbstractAdAlndomain castOther = (AbstractAdAlndomain) other;

		return ((this.getAlndomainId() == castOther.getAlndomainId()) || (this.getAlndomainId() != null
				&& castOther.getAlndomainId() != null && this.getAlndomainId().equals(castOther.getAlndomainId())))
				&& ((this.getDomainCode() == castOther.getDomainCode()) || (this.getDomainCode() != null
						&& castOther.getDomainCode() != null && this.getDomainCode().equals(castOther.getDomainCode())))
				&& ((this.getDomainValue() == castOther.getDomainValue()) || (this.getDomainValue() != null
						&& castOther.getDomainValue() != null && this.getDomainValue().equals(
						castOther.getDomainValue())))
				&& ((this.getDomainDesc() == castOther.getDomainDesc()) || (this.getDomainDesc() != null
						&& castOther.getDomainDesc() != null && this.getDomainDesc().equals(castOther.getDomainDesc())))
				&& ((this.getChangeDate() == castOther.getChangeDate()) || (this.getChangeDate() != null
						&& castOther.getChangeDate() != null && this.getChangeDate().equals(castOther.getChangeDate())))
				&& ((this.getChangeBy() == castOther.getChangeBy()) || (this.getChangeBy() != null
						&& castOther.getChangeBy() != null && this.getChangeBy().equals(castOther.getChangeBy())));
	}

	public int hashCode()
	{
		int result = 17;

		result = 37 * result + (getAlndomainId() == null ? 0 : this.getAlndomainId().hashCode());
		result = 37 * result + (getDomainCode() == null ? 0 : this.getDomainCode().hashCode());
		result = 37 * result + (getDomainValue() == null ? 0 : this.getDomainValue().hashCode());
		result = 37 * result + (getDomainDesc() == null ? 0 : this.getDomainDesc().hashCode());
		result = 37 * result + (getChangeDate() == null ? 0 : this.getChangeDate().hashCode());
		result = 37 * result + (getChangeBy() == null ? 0 : this.getChangeBy().hashCode());
		return result;
	}

}